package com.zhongjian.technologycal.mall.bean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by wei on 2018/1/21.
 */

public class OrderBean implements Serializable {


    /**
     * error_code : 0
     * error_message : 成功
     * data : [{"id":17,"orderno":"B20180227170431727234044","createtime":"2018-02-27 17:04:32","totalamount":38,"freight":0,"realpay":38,"curstatus":1,"tolnum":1,"orderlines":[{"productname":"枣干 艾莎食品","productId":501,"specname":"枣干","productnum":1,"price":38,"photo":"/upload/pics/3bcfbc73-3746-4bf2-92cb-a2402fffa2a2.jpg"}]},{"id":15,"orderno":"B20180227143250091442422","createtime":"2018-02-27 14:32:50","totalamount":240,"freight":0,"realpay":240,"curstatus":0,"tolnum":2,"orderlines":[{"productname":"臻润防晒霜","productId":165,"specname":"瓶","productnum":2,"price":120,"photo":"/upload/pics/fede56fb-cba5-41d3-bc8a-52d1f20a665a.jpg"}]},{"id":14,"orderno":"B20180227142317368382657","createtime":"2018-02-27 14:23:17","totalamount":120,"freight":0,"realpay":120,"curstatus":0,"tolnum":1,"orderlines":[{"productname":"臻润防晒霜","productId":165,"specname":"瓶","productnum":1,"price":120,"photo":"/upload/pics/fede56fb-cba5-41d3-bc8a-52d1f20a665a.jpg"}]}]
     */

    private int error_code;
    private String error_message;
    private List<DataBean> data;

    public int getError_code() {
        return error_code;
    }

    public void setError_code(int error_code) {
        this.error_code = error_code;
    }

    public String getError_message() {
        return error_message;
    }

    public void setError_message(String error_message) {
        this.error_message = error_message;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * id : 17
         * orderno : B20180227170431727234044
         * createtime : 2018-02-27 17:04:32
         * totalamount : 38
         * freight : 0
         * realpay : 38
         * curstatus : 1
         * tolnum : 1
         * orderlines : [{"productname":"枣干 艾莎食品","productId":501,"specname":"枣干","productnum":1,"price":38,"photo":"/upload/pics/3bcfbc73-3746-4bf2-92cb-a2402fffa2a2.jpg"}]
         */

        private int id;
        private String orderno;
        private String createtime;
        private double totalamount;
        private double freight;
        private double realpay;
        private int curstatus;
        private int tolnum;
        private List<OrderlinesBean> orderlines;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getOrderno() {
            return orderno;
        }

        public void setOrderno(String orderno) {
            this.orderno = orderno;
        }

        public String getCreatetime() {
            return createtime;
        }

        public void setCreatetime(String createtime) {
            this.createtime = createtime;
        }

        public double getTotalamount() {
            return totalamount;
        }

        public void setTotalamount(double totalamount) {
            this.totalamount = totalamount;
        }

        public double getFreight() {
            return freight;
        }

        public void setFreight(double freight) {
            this.freight = freight;
        }

        public double getRealpay() {
            return realpay;
        }

        public void setRealpay(double realpay) {
            this.realpay = realpay;
        }

        public int getCurstatus() {
            return curstatus;
        }

        public void setCurstatus(int curstatus) {
            this.curstatus = curstatus;
        }

        public int getTolnum() {
            return tolnum;
        }

        public void setTolnum(int tolnum) {
            this.tolnum = tolnum;
        }

        public List<OrderlinesBean> getOrderlines() {
            return orderlines;
        }

        public void setOrderlines(List<OrderlinesBean> orderlines) {
            this.orderlines = orderlines;
        }

        public static class OrderlinesBean {
            /**
             * productname : 枣干 艾莎食品
             * productId : 501
             * specname : 枣干
             * productnum : 1
             * price : 38
             * photo : /upload/pics/3bcfbc73-3746-4bf2-92cb-a2402fffa2a2.jpg
             */

            private String productname;
            private int productId;
            private String specname;
            private int productnum;
            private double price;
            private String photo;

            public String getProductname() {
                return productname;
            }

            public void setProductname(String productname) {
                this.productname = productname;
            }

            public int getProductId() {
                return productId;
            }

            public void setProductId(int productId) {
                this.productId = productId;
            }

            public String getSpecname() {
                return specname;
            }

            public void setSpecname(String specname) {
                this.specname = specname;
            }

            public int getProductnum() {
                return productnum;
            }

            public void setProductnum(int productnum) {
                this.productnum = productnum;
            }

            public double getPrice() {
                return price;
            }

            public void setPrice(double price) {
                this.price = price;
            }

            public String getPhoto() {
                return photo;
            }

            public void setPhoto(String photo) {
                this.photo = photo;
            }
        }
    }
}
